// let o1 = {a: 1, b: 2}
// let o2 = {b: 3}
// Object.assign(o1, o2)
// console.log(o1, o2)

const videos = [
    '2017.少年锦衣卫.第1季.01[序章]-00.00.11.427-00.00.31.495-seg1.mp4',
    '1993.神经刀与飞天猫-01.23.32.382-01.24.28.882-seg5.mkv',
    '1998.保镖之天之娇女.01-00.44.42.958-00.45.43.016-seg3.mkv',
]

for (let video of videos) {
    const result = video.match(/^(\d{4})\.(.+?)[.-]/)
    const year = parseInt(result[1])
    const name = result[2]

    console.log(year, name)
}
